<div class="col_02" id="rightside">
	<div class="col_02_01" id="sysContent_box">
		<div class="main-wrap">
			<div class="m-t">
				<h2>Search Recruiter</h2>
			</div>
			<div class="m-c">
				   <form action=""  method="GET" name="search" >
					<table width="100%" border="0" cellpadding="0" cellspacing="5" class="table_style">
						<tr>
							<td>Name or Keywords:</td>
							<td>Specialty:</td>
							<td>Industry:</td>
						</tr>
						<tr>
							<td>
								<input  type="text" name="keyword"  maxlength="200" value="{$s.keyword}" style="width:175px" />
							</td>
							<td>
								<select name="prifocus" size="">
									{html_options selected=$s.prifocus options=$function}
								</select>
							</td>
							<td>
								<select name="industry"  >
									{html_options selected=$s.industry options=$industry}
								</select>
							</td>				
						</tr>
						<tr>			
							<td>City:</td>
							<td>State:</td>
							<td>Country:</td>
						</tr>
						<tr>	
							<td>
								<input  type="text" name="city"  maxlength="200" value="{$s.city}" style="width:175px" />
							</td>
							<td>
								<select name="state" >
									{html_options selected=$s.state options=$state}
								</select>
							</td>
							<td>
								<select name="country" >
									{html_options selected=$s.country options=$country}
								</select>
							</td>
						</tr>	
						<tr>			
							<td>Open To:</td>
							<td>Spoken Language:</td>
							<td>Sort Results By:</td>
						</tr>
						<tr>				
							<td>
								<select name="priopen" >
									{html_options selected=$s.priopen options=$opento}
								</select>
							</td>
							<td>
								<input  type="text" name="spokenlan"  maxlength="200" value="{$s.spokenlan}" style="width:175px" />
							</td>
							<td>
								<select name="orderby" size="">
									{html_options selected=$s.orderby options=$rec_findrecruiter}
								</select>
							</td>
						</tr>	
						<tr>
							<td colspan="3" align="center">
								<input name="action" value="search" type="hidden">
								<input class="bginput button-secondary" accesskey="y" type="submit" name="submit" value=" Search ">
								<input class="bginput button-secondary" accesskey="r" type="button" name="Input" value=" Clear "  onclick="turnto('findrecruiter.php')">
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
</div>
<div class="col_02_02" id="side_box">
	<div class="signIn">
		<h2 class="m_t m_t_gray">Member  Center</h2>
		<div class="m_c">
			<div class="mySigned" id="J_sign_form">
				<div id="loginboxx">
					<p class="info">Welcome, <span class="u_name">{$uname}</span>!</p>
					<p class="lnk_panel"><a href="settings.php" class="lnk_arrow">My Account</a></p>
					
					<p class="lnk_panel"><a href="#" onclick="return ajax_out()" class="lnk_arrow">Sign Out</a><div id="loadp"></div></p>
				</div>
			</div>
		</div>
		<div class="m_f"></div>
	</div>
	<div class="panel_box mt_10">
	<h2 class="m_t m_t_gray">Join a Chat </h2>
	<div class="m_c">
		<div>
			<ul>
				<li><a href="findchats.php">Skype Chat</a></li>
				<li><a href="findwebinars.php">Webinars</a></li>
			</ul>
		</div>
		<p class="info"><a href="#"></a></p>							
	</div>
	<div class="m_f"></div>
</div>
</div>
<div class="clearfix"></div>
<div class="module_box mt_10" id="findResults">
	<div class="main-wrap">
	<div class="m_t"><h2>Search Results:</h2></div>
	<div class="m_c">
	{$page}
	  <table width="100%" border="0" cellpadding="4" cellspacing="1" id="resultRecruiter" class=" tableGrey line_gray table_textTop">
	   <tbody>
		  {section name=custom loop=$reclist}
              <tr class="hotline">
                <td width="100" style="vertical-align:middle">
				{$reclist[custom].foto}
				</td>
                <td width="200">
					{if $u_status == 'Trial'}
					<h2 class="u-name"><a href="#inline1" class="upgrade1">{$reclist[custom].rc_name|truncate:18:""}</a></h2>
					{else}
					<h2 class="u-name"><a href="recdetail.php?id={$reclist[custom].rc_id}" target="_blank">{$reclist[custom].rc_name|truncate:18:""}</a></h2>
					{/if}
					{$reclist[custom].rc_title}<br />
					{$reclist[custom].rc_location}<br />
					Specialty: {$reclist[custom].rc_specialty}<br />
					Industry: {$reclist[custom].rc_industry}<br />
				</td>
				<td width="150">
					<h2 class="h_t">Open To</h2>
					{if $reclist[custom].rc_share == 1}Job-Split/Partnerships<br />{/if}
					{if $reclist[custom].rc_business == 1}Regular Employee<br />{/if}
					{if $reclist[custom].rc_contract == 1}Contract<br />{/if}
					{if $reclist[custom].rc_consulting == 1}Consulting<br />{/if}
				</td>
                <td width="210"><h2 class="h_t">Currently Recruiting</h2>
					<p>{$reclist[custom].jobInfo}</p>
					<div class="butWrap">
					{if $reclist[custom].arefriends == 1}
						<font color="#FF8C00"><b>Connected</b></font>
					{elseif $reclist[custom].isSentRequest == 1}
						<font color="#FF8C00"><b>Invitation Sent</b></font>
					{else}
						{if $u_status == 'Trial'}
						{literal}
						<input type="button" value="Invite to Connect" class="button-secondary" onclick="return $.fancybox({'href':'#inline1','titlePosition':'inside','transitionIn': 'none','transitionOut':'none'});" />
						{/literal}
						{elseif $uid == $reclist[custom].rc_id}
						<font color="#FF8C00"><b>My Profile</b></font>
						{elseif $reclist[custom].rc_share == 1}
						<a id="butWrap_{$reclist[custom].rc_id}" href="###" onclick="javascript:displays('{$reclist[custom].rc_name}','{$reclist[custom].rc_id}');" title="Connect to this recruiter" 
						class="btn-connect">Invite to Connect</a>
						{else}
						<font color="#FF8C00"><b>Not Open to Invites</b></font>
						{/if}
					{/if}
					</div>
				</td>
              </tr>
	      {sectionelse}
               <tr class="hotline {cycle values="odd,even"}">
                <td colspan="6"><font color=red>No data was found for selected field(s).<br>  Try again.  Please note 'Select All' will search for all available data in that field.</font></td>
               </tr>
	      {/section}
	      </tbody>
          </table>
        {$page} 
</div>
</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>
<form id="sentmessage" method="POST" action="">
	<div>
		<h2 class="title">Invite <span class="yellow">{$list.rc_fname} {$list.rc_lname}</span> to connect with you on enetRecruiter</h2>
		<div class="info">Connecting with someone on enetRecruiter allows you to easily send them messages and collaborate on job requisitions. Once an invitation is accepted, the individual's contact details will be added to your contact list. Likewise, your contact information will be added to their contact list.</div>
		<div class="field-item"><textarea name="message" style="width:360px;height:100px" id="prefillmessage">Include a personal message (optional)</textarea></div>
		<div class="btn-wrap"><input type="submit" value="Send Invite" class="btn01"/> <input class="btn01" type="button" name="" value="Close" onclick="$.fancybox.close();"/>
		<input type="hidden" name="rid" value="{$list.rc_id}" />
		</div>
	</div>
	</form>
{literal}
	<script>	
			function displays(friendname,rid){
				$.fancybox('<form method="POST" id="sentmessage" action="" onsubmit="return ajaxpost('+rid+')"><div><h2 class="title">Invite <span class="yellow">'+ friendname+'</span> to connect with you on enetRecruiter</h2><div class="info">Connecting with someone on enetRecruiter allows you to easily send them messages and collaborate on job requisitions. Once an invitation is accepted, the individual\'s contact details will be added to your contact list. Likewise, your contact information will be added to their contact list.</div><div class="field-item"><textarea name="message" style="width:360px;height:100px" id="prefillmessage">Include a personal message (optional)</textarea></div><div style="btn-wrap"><input type="submit" name="submit" value="Send Invite" class="button-secondary"/> <input type="button" name="close" value="Close" onclick="$.fancybox.close();" class="button-secondary"/><input type="hidden" name="rid" value="'+rid+'" /></div></div></form>',
				{
					'centerOnScroll'   : true ,
					'onComplete' : function(){
						//$("#fancybox-wrap").css({'top':'20px', 'bottom':'auto'});
						$("#prefillmessage").click(function(){
							if( $("#prefillmessage").val() == "Include a personal message (optional)" ){
								 $("#prefillmessage").val("");
							}
						});
					}
				}
				);
			}

			function ajaxpost(rid){
				$.ajax({
					type	: "POST",
					cache	: false,
					url	: "sentsuccess.php",
					dataType: 'json',
					data	: $("#sentmessage").serializeArray(),
					success: function(data) {
						if(data.status = 1)
						{
							$("#butWrap_"+rid).parent().html('<font color="#FF8C00"><b>Invitation Sent</b></font>');
						}
						$.fancybox(data.text);
					}
				});
				return false;
			}

			$(document).ready(function() {
				
			});
	</script>
{/literal}
